package demo1;

public class OutChar {
    public static void main(String[] args) {
        char a1 = '\n';
        char a2 = '\t';
        char a3 = '\r';
        char a4 = '\\';
        char a5 = '1';
        char a6 = '2';
        char a7 = '3';
        System.out.println(a1);
        System.out.println(a2);
        System.out.println(a3);
        System.out.println(a4);
        System.out.println(a5);
        System.out.println(a6);
        System.out.println(a7);
        System.out.println("------------");

        //性别应该使用char保存
        char c1 = '男';
        char c2 = '女';
        System.out.println(c1 + c2);//得到52906  男 字符码值 + 女 字符码值【因为做了运算】
        System.out.println(c1+"\t"+c2);//男	女
        System.out.println(c1);//男
        System.out.println(c2);//女
        System.out.println((int)c1);//30007
        System.out.println((int)c2);//22899
    }

}
